package com.apes.fa.service;

import com.apes.fa.model.FaAssetInvestItem;
import com.apes.fa.model.FaAssetScrapItem;
import com.apes.fa.respository.FaAssetInvestItemRepository;
import com.apes.fa.respository.FaAssetScrapItemRepository;
import com.apes.framework.api.DomainService;
import com.apes.framework.plugin.esb.api.SimpleRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: apes-server
 * @BelongsPackage: com.apes.fa.service
 * @ClassName: FaAssetScrapService
 * @Author: PengZiFeng
 * @Description: 资产报废毁损
 * @CreateTime: 2021-09-22 11:45
 * @Version: 1.0
 */
@Service("faAssetInvestItemService")
public class FaAssetInvestItemService extends DomainService {

    @Autowired
    private FaAssetInvestItemRepository faAssetInvestItemRepository;




    /**
     * 根据卡片id查全部
     */
    public List<FaAssetInvestItem> findCard(SimpleRequest request){

        String id = request.get("id");
        List<FaAssetInvestItem> faAssetInvestItems = faAssetInvestItemRepository.findCard(id);
        return faAssetInvestItems;

    }

}
